package system;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {

	static final String NAME="hst_db";
	static final int VERSION=1;
	public DatabaseHelper(Context context) {
		super(context, NAME, null, VERSION);
	}
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE  person_info (username VARCHAR(50) PRIMARY KEY ,cnname VARCHAR(30),phone VARCHAR(50)) ");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
